<?php
defined('IN_DESTOON') or exit('Access Denied');
if($_POST['type'] == 'del')
{
   echo filtedeledit( 'del', $_POST['categoryId'], '', '0' );   
}
else if( $_POST['type'] == 'edit')
{
    $categoryId     = $_POST['categoryId'];
    $parentId       = $_POST['parentId'];
    $categoryName   = $_POST['category_name'];
    
    echo filtedeledit( 'edit',$categoryId, $categoryName, $parentId );  
}
else if( $_POST['type'] == 'add')
{
    $categoryId     = $_POST['categoryId'];
    $parentId       = $_POST['parentId'];
    $categoryName   = $_POST['category_name'];
   echo filtedeledit('add',$categoryId, $categoryName, $parentId );  
}

?>